package com.bingxue.edu.framework.ip2region;

import com.bingxue.edu.framework.ip2region.core.Ip2regionSearcher;
import com.bingxue.edu.framework.ip2region.impl.Ip2regionSearcherImpl;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ResourceLoader;

/**
 * @author panbo
 * @since 2024/7/9
 */
@Configuration(proxyBeanMethods = false)
public class Ip2regionAutoConfiguration {

    @Bean
    public Ip2regionSearcher ip2regionSearcher(ResourceLoader resourceLoader) {
        return new Ip2regionSearcherImpl(resourceLoader);
    }

}
